package anbow.ch3;

import java.math.BigDecimal;
import java.math.BigInteger;

/**
 *  int 32位，-2^31 ~ 2^31-1
 */

public class BigDemo {

	public static void main(String[] args) {
		BigInteger bi1 = new BigInteger("‭2147483647");
		System.out.println(bi1);
		BigInteger bi2 = new BigInteger("‭2147483648");
		
		BigInteger bi3 = bi1.add(bi2);
		System.out.println(bi3);
		
		BigInteger bi4 = bi1.multiply(bi2);
		System.out.println(bi4);
		
		System.out.println(bi1.subtract(bi2));
		
		System.out.println(bi1.divide(bi2));
		
		
		BigInteger bi5 = BigInteger.ONE;
		
		System.out.println();
	}

}
